package com.pengtu.entity.asset.equipment;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import com.pengtu.entity.IdEntity;

@Entity
@Table(name = "T_ASST_EQUIP_MAIN")
public class EquipMaintenance extends IdEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private Date maintenanceDate; // 维修时间
	private Date nextMaintenanceDate; // 下次维修时间
	private EquipInformation equipInformation; // 维修机器
	private String remark;
	
	@Column(name="REMARK")
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	@ManyToOne
	@JoinColumn(name = "EQUIPMENT")
	public EquipInformation getEquipInformation() {
		return equipInformation;
	}

	public void setEquipInformation(EquipInformation equipInformation) {
		this.equipInformation = equipInformation;
	}

	@Column(name = "MAINTENANCEDATE")
	@Temporal(TemporalType.DATE)
	public Date getMaintenanceDate() {
		return maintenanceDate;
	}

	public void setMaintenanceDate(Date maintenanceDate) {
		this.maintenanceDate = maintenanceDate;
	}

	@Column(name = "NEXTMAINTENANCEDATE")
	@Temporal(TemporalType.DATE)
	public Date getNextMaintenanceDate() {
		return nextMaintenanceDate;
	}

	public void setNextMaintenanceDate(Date nextMaintenanceDate) {
		this.nextMaintenanceDate = nextMaintenanceDate;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	public EquipMaintenance() {
		super();
	}

}
